<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<div data-options="region:'north'"style="min-height: 50px;height:20%">
      <br/>
      <label>会员名:</label>
      <input id="list_buyerName" class="easyui-textbox" style="width:100px">&nbsp;&nbsp;&nbsp;
      <label>时间从:</label>
      <input id="list_addTime_begin" name="prescriptionList_datebegin" class="easyui-datetimebox" style="width:100px;"></input>&nbsp;&nbsp;&nbsp;
      <label>至</label>
      <input id="list_addTime_end" name="prescriptionList_dateend" class="easyui-datetimebox" style="width:100px;"></input>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      &nbsp;&nbsp;&nbsp;
      <a href="#" class="easyui-linkbutton" iconCls="icon-search" onClick="selectItemList(true)">查询</a>
</div>

<div data-options="region:'center'"  style="width:100%;height:60%;min-height:630PX;">
    <table id="ticketList_dateGrid" class="easyui-datagrid"></table>
</div>

<!-- 查看开票信息dialog -->
<div id="itemTicketWindow" class="easyui-window" style="width:900px;height:700px;" title="增值税开票信息" modal="true" closed="true"  border="false">
       <div class="easyui-layout" style="width:835px;min-height:650px;margin-left:25px;">
           <div class="easyui-panel" title="" style="width:845px;border:0;margin-bottom:2px;padding:5px">
                <form id="itemBrandAddForm" name="itemBrandAddForm" class="itemForm" method="post">
                <input id="id" name="id" type="hidden" style="width:180px"/>
                   <div style="width:416px;height:35px;border:1px solid #CCC;float:left;padding-left:0;margin-left:5px;margin-top:10px; overflow:hidden;padding-top:15px;">
                         <label  style="display: inline-block;width: 150px;text-align:right;">增值税资料审核状态：</label>
                         <input id="ticketStatus" name="ticketStatus" class="easyui-validatebox textbox" readonly="true" style="width:250px;height:25px;border:0;"/>
                   </div>
                   <div style="width:416px;height:35px;border:1px solid #CCC;float:left;padding-left:0;margin-left:5px;margin-top:10px; overflow:hidden;padding-top:15px;">
                          <label  style="display: inline-block;width: 150px;text-align:right;">开票公司名称：</label>
                          <input id="ticketCompanyName" name="ticketStatus" class="easyui-validatebox textbox" readonly="true" style="width:250px;height:25px;border:0;"  />
                   </div>
                   <div style="width:416px;height:35px;border:1px solid #CCC;float:left;padding-left:0;margin-left:5px;margin-top:10px; overflow:hidden;padding-top:15px;">
                          <label  style="display: inline-block;width: 150px;text-align:right;">税号：</label>
                          <input id="ticketOrderNum" name="ticketOrderNum" class="easyui-validatebox textbox" readonly="true" style="width:250px;height:25px;border:0;"  />
                   </div>
                   <div style="width:416px;height:35px;border:1px solid #CCC;float:left;padding-left:0;margin-left:5px;margin-top:10px; overflow:hidden;padding-top:15px;">
                           <label  style="display: inline-block;width: 150px;text-align:right;">地址：</label>
                           <input id="ticketAddress" name="ticketAddress" class="easyui-validatebox textbox" readonly="true" style="width:250px;height:25px;border:0;"  />
                   </div>
                   <div style="width:416px;border:1px solid #CCC;float:left;padding-left:0;margin-left:5px;margin-top:10px; overflow:hidden;padding-top:15px;">
                           <label  style="display: inline-block;width: 150px;text-align:right;">电话：</label>
                           <input id="ticketPhone" name="ticketPhone" class="easyui-validatebox textbox" readonly="true" style="width:250px;height:25px;border:0;"  />
                   </div>
                   <div style="width:416px;height:35px;border:1px solid #CCC;float:left;padding-left:0;margin-left:5px;margin-top:10px; overflow:hidden;padding-top:15px;">
                           <label  style="display: inline-block;width: 150px;text-align:right;">银行：</label>
                           <input id="ticketBankName" name="ticketBankName" class="easyui-validatebox textbox" readonly="true" style="width:250px;height:25px;border:0;"  />
                   </div>
                   <div style="width:416px;height:35px;border:1px solid #CCC;float:left;padding-left:0;margin-left:5px;margin-top:10px; overflow:hidden;padding-top:15px;">
                         <label  style="display: inline-block;width: 150px;text-align:right;">账号：</label>
                         <input id="ticketBankNo" name="ticketBankNo" class="easyui-validatebox textbox" readonly="true" style="width:250px;height:25px;border:0;"  />
                   </div>
                   <div style="width:416px;height:35px;border:1px solid #CCC;float:left;padding-left:0;margin-left:5px;margin-top:10px; overflow:hidden;padding-top:15px;">
                         <label  style="display: inline-block;width: 150px;text-align:right;">上传附件：</label>
                         <a id="download" href="" ><input id="ticketFile" name="ticketFile" class="easyui-validatebox textbox" readonly="true" style="width:250px;height:25px;border:0;color: blue"  /></a>
                   </div>
                   <div style="width:416px;height:35px;border:1px solid #CCC;float:left;padding-left:0;margin-left:5px;margin-top:10px; overflow:hidden;padding-top:15px;">
                         <label  style="display: inline-block;width: 150px;text-align:right;">发票收件人：</label>
                       	 <input id="ticketReceiver" name="ticketReceiver" class="easyui-validatebox textbox" readonly="true" style="width:250px;height:25px;border:0;"  />
                   </div>
                   <div style="width:416px;height:35px;border:1px solid #CCC;float:left;padding-left:0;margin-left:5px;margin-top:10px; overflow:hidden;padding-top:15px;">
                         <label  style="display: inline-block;width: 150px;text-align:right;">发票收件人联系电话：</label>
                         <input id="ticketReceiverPhone" name="ticketReceiverPhone" class="easyui-validatebox textbox" readonly="true" style="width:250px;height:25px;border:0;"  />
                   </div>
                   <div style="width:416px;height:35px;border:1px solid #CCC;float:left;padding-left:0;margin-left:5px;margin-top:10px; overflow:hidden;padding-top:15px;">
                         <label  style="display: inline-block;width: 150px;text-align:right;">发票收件地址：</label>
                         <input id="ticketReceiverAddress" name="ticketReceiverAddress" class="easyui-validatebox textbox" readonly="true" style="width:250px;height:25px;border:0;"  />
                   </div>
                   <div style="width:416px;height:35px;border:1px solid #CCC;float:left;padding-left:0;margin-left:5px;margin-top:10px; overflow:hidden;padding-top:15px;">
                         <label  style="display: inline-block;width: 150px;text-align:right;">提交日期：</label>
                         <input id="ticketCreateDate" name="ticketCreateDate" class="easyui-validatebox textbox" readonly="true" style="width:250px;height:25px;border:0;"  />
                   </div>
			       <div style="width:816px;height:35px;border:0px solid #CCC;float:left;padding-left:0;margin-left:5px;margin-top:10px; overflow:hidden;padding-top:15px;">
			           <div style="width:416px;margin-left:100px;text-align:left;margin-top:10px;">
			               <input name="" type="button" class="scbtn" onclick="checkTicket()" value="确定"/>
			           </div>  
			      </div>
			   </form>
          </div>  
     </div>   
</div> 

<!-- 
<div id="itemEditWindow" class="easyui-window" title="编辑商品" data-options="modal:true,closed:true,iconCls:'icon-save',href:'/rest/page/item-edit'" style="width:80%;height:80%;padding:10px;">
	<div style="padding:10px 100px 10px 100px">
	    <form id="itemAddForm" class="itemForm" method="post">
	   
	    <div id="cc" class="easyui-layout" style="width:100%;height:800px;fit:true">
	        <div data-options="region:'north',title:'基本信息',split:true" style="height:200px;"></div>
	        <div data-options="region:'center'">
	            <div id="cc1" class="easyui-layout" style="width:100%;height:400px;fit:true;">
	                <div data-options="region:'north',title:'扩展属性',split:true" style="height:100px;"></div>
	                <div data-options="region:'center',title:'商品规格'" style="padding:5px;background:#eee;"></div>
	                <div data-options="region:'south',title:'图片和描述',split:true" style="height:100px;"></div>
	            </div>
	        </div>
	    </div> 
	
	        <table cellpadding="5">
	            <tr>
	                <td>商品类目:</td>
	                <td>
	                    <a href="javascript:void(0)" class="easyui-linkbutton selectItemCat">选择类目</a>
	                    <input type="hidden" id="categoryId" name="categoryId" style="width: 280px;"></input>
	                </td>
	            </tr>
	            
	            <tr><td colspan="2" class="item_title">基本信息</td></tr>
	            <tr><td colspan="2"><hr/></td></tr>
	            
	            <tr>
	                <td>品牌:</td>
	                <td>
	                    <input  id="brandId" name="brandId" required="required" class = "easyui-combobox"/>&nbsp;&nbsp;&nbsp;
	                </td>
	            </tr>
	            <tr>
	                <td>商品名称:</td>
	                <td><input class="easyui-textbox" type="text" id="list_productName" name="productName" data-options="required:true"></input></td>
	            </tr>
	            <tr>
	                <td>商家编码:</td>
	                <td><input class="easyui-textbox" type="text" name="productCode" data-options="required:true" ></input></td>
	            </tr>
	            <tr>
	                <td>计量单位:</td>
	                <td><input class="easyui-textbox" type="text" name="unit"/></td>
	            </tr>
	            <tr>
	                <td>包装描述:</td>
	                <td><input class="easyui-textbox" type="text" name="packageInfo"/></td>
	            </tr>
	            <tr>
	                <td>购买的倍数:</td>
	                <td>
	                    <input id="minBuyNum" name="minBuyNum" required="required" class="easyui-numberspinner" data-options="min:1,editable:true">
	                </td>
	            </tr>
	            <tr>
	                <td>包装数量:</td>
	                <td>
	                    <input id="packageNum" name="packageNum" required="required" class="easyui-numberspinner" data-options="min:1,editable:true">
	                </td>
	            </tr>
	            <tr>
	            
	            <tr><td colspan="2" class="item_title">扩展属性</td></tr>
	            <tr id="extend_attr_div"><td colspan="2"><hr/></td></tr>
	            
	             
	            <tr><td colspan="2" class="item_title">商品规格</td></tr>
	            <tr><td colspan="2"><hr/></td></tr>
	       </table>
	       <table id="itemSkuList_dategrid" class="easyui-datagrid" style="width: 900px;"></table>
	       <table> 
	            <tr><td colspan="2" class="item_title">图片和描述</td></tr>
	            <tr><td colspan="2"><hr/></td></tr>
	            
	            <tr>
	                <td>商品主图:</td>
	                <td>
	                     <a href="javascript:void(0)" class="easyui-linkbutton picFileUpload">上传图片</a>
	                     <input type="hidden" name="imageUrl1"/>
	                </td>
	            </tr>
	            <tr>
	                <td>商品简介:</td>
	                <td><input class="easyui-textbox" name="summary" data-options="multiline:true,validType:'length[0,150]'" style="height:60px;width: 280px;"></input></td>
	            </tr>
	            <tr>
	                <td>商品描述:</td>
	                <td>
	                    <textarea style="width:800px;height:300px;visibility:hidden;" id="description" name="description"></textarea>
	                </td>
	            </tr>
	            <tr>
	                <td>规格书:</td>
	                <td>
	                    <input type="file" name="specification"></input>
	                </td>
	            </tr>
	            <tr>
	                <td>商品销售状态:</td>
	                <td>
	                    <input type="radio" name="saleStatus" value="1" style="margin-left: 20px;" checked="checked"/><span>出售中</span>
	                    <input type="radio" name="saleStatus" value="2" style="margin-left: 20px;" /><span>下架区</span>
	                    <input type="radio" name="saleStatus" value="3" style="margin-left: 20px;" /><span>仓库中</span>
	                </td>
	            </tr>
	        </table>
	        <input type="hidden" name="extendattrs"/>
	        <input type="hidden" name="skuids"/>
	    </form>
	    <div style="padding:5px">
	        <a href="javascript:void(0)" class="easyui-linkbutton" onclick="submitForm()">保存</a>
	        <a href="javascript:void(0)" class="easyui-linkbutton" onclick="clearForm()">重置</a>
	    </div>
	</div>
	
	<div id="AddItemSkuWindow" class="easyui-window" title="添加规格" data-options="modal:true,closed:true,iconCls:'icon-save'" style="width:60%;height:80%;padding:10px;">
	    <div id="cc" class="easyui-layout" style="width:100%;height:100%;">   
	        <div data-options="region:'north',title:'规格属性',split:true" style="height:40%;">
	            <table id="itemSkuValueList_dategrid" class="easyui-datagrid" style="width: 900px;"></table>
	        </div>   
	        <div id="AddItemSkuWindow_center" data-options="region:'center',title:'阶梯价格'" style="padding:5px;background:#fff;">
	            <div class="stepprice_class" style="width: 98%;height: 30px;padding-left: 2%;margin-top: 20px;">
	                <div class="stepprice_child_class" style="width:63%;height:30px;float:left;">
	                    <input id="pricebegin0" name="pricebegin0" required="required" value="1" class="easyui-numberspinner" data-options="min:0,editable:true"><label>-</label>
	                    <input id="priceend0"   name="priceend0"   required="required" value="49" class="easyui-numberspinner" data-options="min:0,editable:true">
	                    <input id="price0"      name="price0"      required="required" value="1" class="easyui-numberspinner" data-options="min:0,editable:true" precision="2"><label>元</label>
	                </div>
	                <div style = "width:30%;height:30px;float:left;margin-left:5px;">
	                   <a href="javascript:void(0)"  class="easyui-linkbutton" iconCls="icon-add"  plain="true" ></a>
	               </div>
	           </div>
	       </div> 
	       <div data-options="region:'south',split:true,border:false" style="height:50px;padding-right: 20px;padding-top: 10px;margin-left: 90%">
	               <a href="javascript:void(0)" class="easyui-linkbutton" onclick="saveItemSku()">确定</a>
	               <a href="javascript:void(0)" class="easyui-linkbutton" onclick="$('#AddItemSkuWindow').window('close')">取消</a>
	       </div>  
	    </div>  
	</div>
	
	查看阶梯价格dialog
	<div id="stepPriceDialog" class="easyui-dialog" title="阶梯价格" modal="true" closed="true"  border="false">
	       <div data-options="region:'center'" style="width:100%;height:78%;min-height:100px;"border="true" >
	            <table class="easyui-datagrid" id="stepprice_datagrid"></table>
	       </div> 
	       <div data-options="region:'south'" border="false" style="min-height:30px;height:20%">
	           <div style="width:80%;margin-left:10px;text-align:right;margin-top:5px;">
	               <input name="" type="button" class="scbtn" onclick="$('#stepPriceDialog').dialog('close');" value="确定"/>
	           </div>  
	      </div> 
	</div> 



</div> -->

<script type="text/javascript" src="${path}/js/ticket/ticket-list.js"></script>